<?php
require dirname(__FILE__) . "/../classes/ConnectionFactory.class.php";
require dirname(__FILE__) . "/../classes/CarDAO.class.php";
require dirname(__FILE__) . "/../classes/ContactCar.class.php";


$conn = new ConnectionFactory();
$db = $conn->getConnection();
$cars1 = new ContactCar();

$model = $_POST['modelSearch'];

$dao = new CarDAO($db);
$cars1 = $dao->getList($model);



?>
